@extends('admin.layout') @section('content')
{{ csrf_field() }} {{--
--}} {{-- Thêm banner--}} {{--
--}}
@php $field = 'user_id'; $mess = 'Tài khoản' @endphp
{{-- --}} @if($errors->has($field)) {{$errors->first($field)}} @endif
@php $field = 'limit_type'; $mess = 'Kiểu giới hạn' @endphp
@php $oldVal = old($field); if (!$oldVal && isset($model)) { $oldVal = $model[$field]; } @endphp @if($errors->has($field)) {{$errors->first($field)}} @endif
@php $field = 'limit_value'; $mess = 'Giá trị giới hạn' @endphp
@php $oldVal = old($field); if (!$oldVal && isset($model)) $oldVal = $model[$field]; @endphp @if($errors->has($field)) {{$errors->first($field)}} @endif
@if(old('status') || isset($model))
@php $field = 'status'; $mess = 'Trạng thái' @endphp
@php $oldVal = old($field); if (!$oldVal && isset($model)) $oldVal = $model[$field]; @endphp
@endif
@endsection @section('extra-js') @endsection