@extends('layouts.app')
@section('title', 'Edit Gate Pass')
@push('plugin-styles')
<link rel="stylesheet" href="{{ asset('theme/css/select2.css') }}">
<style>
    .select2{
        border: 1px solid #e9ecef;
        padding-top: 7px;
        border-radius: 3px;
    }

    /* Style for readonly GP number field */
    #gp_number[readonly] {
        background-color: #f8f9fa;
        border-color: #dee2e6;
        color: #495057;
        cursor: not-allowed;
    }

    #gp_number[readonly]:focus {
        box-shadow: none;
        border-color: #dee2e6;
    }

    .form-text.text-muted {
        font-size: 0.875em;
        color: #6c757d !important;
    }

    .form-text.text-muted i {
        margin-right: 0.25rem;
    }
    .select2-container{
        height:45px !important;
    }
</style>
@endpush
@section('content')
<div class="card">
    <div class="card-body">
        <h6 class="card-title mb-3">Edit Gate Pass</h6>
        @if($errors->any())
            <div class="alert alert-danger">{{ print_r($errors->all()) }}</div>
        @endif
        @include('gate_passes.form')
    </div>
</div>
@endsection
